{deps, [
	{base64url, "1.0.1"},
	{jiffy, "0.15.2"},
	{fusco, "0.1.0"},
	{cowboy, "2.7.0"},
	{graphql, {git, "https://github.com/shopgun/graphql-erlang.git", {branch, "master"}}},
	{prometheus, "4.4.1"},
	{prometheus_process_collector, "1.4.5"},
	{prometheus_cowboy, {git, "https://github.com/ArweaveTeam/prometheus-cowboy.git", {ref, "3386d21191527831fd4480178633d1bb5aed253b"}}}
]}.

{relx, [
	{release, {arweave, "1.9.4.0"}, [
		arweave,
		sasl,
		os_mon,
		ar_sqlite3,
		base64url,
		jiffy,
		fusco,
		cowboy,
		graphql,
		prometheus,
		prometheus_process_collector,
		prometheus_cowboy
	]},

	{sys_config, "./config/sys.config"},
	{vm_args, "./config/vm.args"},

	{overlay, [
		{copy, "scripts/start", "bin/start"},
		{copy, "bin/logs", "bin/logs"},
		{copy, "bin/check-nofile", "bin/check-nofile"},
		{copy, "data/not_found.html", "data/not_found.html"},
		{copy, "data/genesis_wallets.csv", "data/genesis_wallets.csv"},
		{copy, "data/genesis_txs", "data/genesis_txs"}
	]},

	{dev_mode, true},
	{include_erts, false},

	{extended_start_script, true}
]}.

{pre_hooks, [
	{"(linux)", compile, "env AR=gcc-ar make -C apps/arweave/lib/RandomX"},
	{"(darwin)", compile, "make -C apps/arweave/lib/RandomX"},
	{"(linux)", compile, "env AR=gcc-ar make -C apps/arweave/c_src"},
	{"(darwin)", compile, "make -C apps/arweave/c_src"}
]}.
{post_hooks, [
	{"(linux|darwin)", clean, "make -C apps/arweave/lib/RandomX clean"},
	{"(linux|darwin)", clean, "make -C apps/arweave/c_src clean"}
]}.

{profiles, [
	{prod, [
		{relx, [
			{dev_mode, false},
			{include_erts, true}
		]}
	]},
	{test, [
		{deps, [{meck, "0.8.13"}]}
	]}
]}.
